﻿using System.Collections.Generic;
using System.Web.Http;
using Sportsbook.Domain.Models.Leagues;
using Sportsbook.Domain.Repositories;

namespace Sportsbook.Website.Areas.Api.Controllers
{
    public class LeaguesController : ApiController
    {
        private readonly ILeaguesRepository repository;

        public LeaguesController(ILeaguesRepository repository)
        {
            this.repository = repository;
        }

        public IEnumerable<ILeague> Get(string sportId, string filterType)
        {
            var model = repository.Get(sportId, filterType);
            return model;
        }
    }
}
